<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category   design_blank
 * @package    Mage
 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */
/* contus */

$urlCollections = $this->urlCollections();
//Deal Deciding function
$metaData = $this->calling();
$recent = Mage::app()->getRequest()->getParam('recent');

//For Changing the Meta Title and Description.
if(Mage::getSingleton('cms/page')->getIdentifier() == 'home') {
    $title = $metaData[0];
    $metaDescription = $metaData[1];
    $metaKeywords = $metaData[2];
}else {
    $title = $this->getTitle();
    $metaDescription =  htmlspecialchars($this->getDescription());
    $metaKeywords = htmlspecialchars($this->getKeywords());
}

//sets product Id if it comes from recent deal page
if(isset($recent)){ 
    $title = 'Recent Deal View Page';
    
}

?>

<title><?php echo $title  ?></title>
<meta http-equiv="Content-Type" content="<?php echo $this->getContentType() ?>" />
<meta name="description" content="<?php echo $metaDescription; ?>" />
<meta name="keywords" content="<?php echo $metaKeywords; ?>" />
<meta name="robots" content="<?php echo htmlspecialchars($this->getRobots()) ?>" />
<link rel="icon" href="<?php echo $this->getSkinUrl('favicon.ico') ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo $this->getSkinUrl('favicon.ico') ?>" type="image/x-icon" />
<script type="text/javascript">
    //<![CDATA[
    var BLANK_URL = '<?php echo $this->helper('core/js')->getJsUrl('blank.html') ?>';
    var BLANK_IMG = '<?php echo $this->helper('core/js')->getJsUrl('spacer.gif') ?>';
    //]]>
</script>

<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('css/header.css') ?>" media="all" />
<?php
/* Only for Home page */
if(Mage::getSingleton('cms/page')->getIdentifier() == 'home') { ?>
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('css/homecontent.css') ?>" media="all" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('css/reset.css') ?>" media="all" />

<script type="text/javascript" src="<?php echo $this->getJsUrl('prototype/prototype.js') ?>"></script>
<script type="text/javascript" src="<?php echo $this->getJsUrl('scriptaculous/effects.js') ?>"></script>
<script type="text/javascript" src="<?php echo $this->getJsUrl('prototype/validation.js') ?>"></script>
<script type="text/javascript" src="<?php echo $this->getJsUrl('varien/js.js') ?>"></script>
<script type="text/javascript" src="<?php echo $this->getJsUrl('varien/form.js') ?>"></script>
<script type="text/javascript" src="<?php echo $this->getJsUrl('mage/translate.js') ?>"></script>
    <?php }else {
    echo  $this->getCssJsHtml();
} ?>
<?php echo $this->getChildHtml() ?>
<?php echo $this->helper('core/js')->getTranslatorScript() ?>
